package com.hutao.manage.model;

import com.hutao.manage.util.NumberUtil;

public class SsrsPerformance {
	
	private String depa;
	
	private String depaCode;
	
	private Integer cyrs;//出院人数
	
	private Integer opsrs;//手术人数
	
	private Double opsrsLv;
	
	
	
	private Integer preCyrs;//出院人数
	
	private Integer preOpsrs;//手术人数
	
	private Double  preOpsrsLv;
	
	
	private Integer lastCyrs;//出院人数
	
	private Integer lastOpsrs;//手术人数
	
	private Double  lastOpsrsLv;
	
	
	private Double  rsTbzzLv;
	
	private Double  rsHbzzLv;
	
	private Double  lvTbzzLv;
	
	private Double  lvHbzzLv;

	public String getDepa() {
		return depa;
	}

	public void setDepa(String depa) {
		this.depa = depa;
	}

	public Integer getCyrs() {
		return cyrs;
	}

	public void setCyrs(Integer cyrs) {
		this.cyrs = cyrs;
	}

	public Integer getOpsrs() {
		return opsrs;
	}

	public void setOpsrs(Integer opsrs) {
		this.opsrs = opsrs;
	}

	public Double getOpsrsLv() {
		return opsrsLv;
	}

	public void setOpsrsLv(Double opsrsLv) {
		this.opsrsLv = opsrsLv;
	}

	public Integer getPreCyrs() {
		return preCyrs;
	}

	public void setPreCyrs(Integer preCyrs) {
		this.preCyrs = preCyrs;
	}

	public Integer getPreOpsrs() {
		return preOpsrs;
	}

	public void setPreOpsrs(Integer preOpsrs) {
		this.preOpsrs = preOpsrs;
	}

	public Double getPreOpsrsLv() {
		return preOpsrsLv;
	}

	public void setPreOpsrsLv(Double preOpsrsLv) {
		this.preOpsrsLv = preOpsrsLv;
	}

	public Integer getLastCyrs() {
		return lastCyrs;
	}

	public void setLastCyrs(Integer lastCyrs) {
		this.lastCyrs = lastCyrs;
	}

	public Integer getLastOpsrs() {
		return lastOpsrs;
	}

	public void setLastOpsrs(Integer lastOpsrs) {
		this.lastOpsrs = lastOpsrs;
	}

	public Double getLastOpsrsLv() {
		return lastOpsrsLv;
	}

	public void setLastOpsrsLv(Double lastOpsrsLv) {
		this.lastOpsrsLv = lastOpsrsLv;
	}

	public Double getRsTbzzLv() {
		return rsTbzzLv;
	}

	public void setRsTbzzLv(Double rsTbzzLv) {
		this.rsTbzzLv = rsTbzzLv;
	}

	public Double getRsHbzzLv() {
		return rsHbzzLv;
	}

	public void setRsHbzzLv(Double rsHbzzLv) {
		this.rsHbzzLv = rsHbzzLv;
	}

	public Double getLvTbzzLv() {
		return lvTbzzLv;
	}

	public void setLvTbzzLv(Double lvTbzzLv) {
		this.lvTbzzLv = lvTbzzLv;
	}

	public Double getLvHbzzLv() {
		return lvHbzzLv;
	}

	public void setLvHbzzLv(Double lvHbzzLv) {
		this.lvHbzzLv = lvHbzzLv;
	}

	public String getDepaCode() {
		return depaCode;
	}

	public void setDepaCode(String depaCode) {
		this.depaCode = depaCode;
	}
	
	
	public void initDate(){
		if(cyrs!=null&&cyrs>0&&opsrs!=null){
			opsrsLv= (NumberUtil.getBaiFenNumber(opsrs * 1.0 / cyrs));
		}
		
		if(preCyrs!=null&&preCyrs>0&&preOpsrs!=null){
			preOpsrsLv= (NumberUtil.getBaiFenNumber(preOpsrs * 1.0 / preCyrs));
		}
		
		if(lastCyrs!=null&&lastCyrs>0&&lastOpsrs!=null){
			lastOpsrsLv= (NumberUtil.getBaiFenNumber(lastOpsrs * 1.0 / lastCyrs));
		}
		
		if(opsrs!=null &&lastOpsrs!=null && lastOpsrs>0) {
			rsTbzzLv = (NumberUtil.getBaiFenNumber((opsrs-lastOpsrs) * 1.0 / lastOpsrs));
		}
		
		if(opsrs!=null &&preOpsrs!=null && preOpsrs>0) {
			rsHbzzLv = (NumberUtil.getBaiFenNumber((opsrs-preOpsrs) * 1.0 / preOpsrs));
		}
		
		if(opsrsLv!=null &&preOpsrsLv!=null && preOpsrsLv>0) {
			lvHbzzLv = (NumberUtil.getBaiFenNumber((opsrsLv-preOpsrsLv) * 1.0 / preOpsrsLv));
		}
		
		if(opsrsLv!=null &&lastOpsrsLv!=null && lastOpsrsLv>0) {
			lvTbzzLv = (NumberUtil.getBaiFenNumber((opsrsLv-lastOpsrsLv) * 1.0 / lastOpsrsLv));
		}
		
	}

	@Override
	public String toString() {
		return "SsrsPerformance [depa=" + depa + ", depaCode=" + depaCode + ", cyrs=" + cyrs + ", opsrs=" + opsrs
				+ ", opsrsLv=" + opsrsLv + ", preCyrs=" + preCyrs + ", preOpsrs=" + preOpsrs + ", preOpsrsLv="
				+ preOpsrsLv + ", lastCyrs=" + lastCyrs + ", lastOpsrs=" + lastOpsrs + ", lastOpsrsLv=" + lastOpsrsLv
				+ ", rsTbzzLv=" + rsTbzzLv + ", rsHbzzLv=" + rsHbzzLv + ", lvTbzzLv=" + lvTbzzLv + ", lvHbzzLv="
				+ lvHbzzLv + "]";
	}
	
	
	
	
}
